<script setup lang="ts">
import { ElTag } from 'element-plus'
defineProps({
  type: {
    type: Number,
    default: () => null
  }
})
</script>

<template>
  <ElTag :type="type === 0 ? 'danger' : 'success'"> {{ type === 1 ? '启用' : '禁用' }}</ElTag>
</template>
